package com.audi.box.service;

import java.util.ArrayList;

import com.audi.dto.DeviceItem;
import com.audi.dto.PlaceItem;

public interface DeviceService {
    int addDevice(DeviceItem device);
    
    int addNewDevice(DeviceItem device);
    
    int updateDevice(DeviceItem device);
    
    int editPlaceDevice(DeviceItem device);
    
    int renameDevice(DeviceItem device);
    
    int changePlaceforDeviceItemList(ArrayList<DeviceItem> lstDevice,
            PlaceItem place);
    
    int changeFavoriteForDeviceList(ArrayList<DeviceItem> lstDevice);
    
    boolean isExist(DeviceItem device);
    
    boolean isExistByDeviceName(DeviceItem device);
    
    boolean isExistByDeviceCode(DeviceItem device);
    
    ArrayList<DeviceItem> getListDevice();
    
    ArrayList<DeviceItem> getListDeviceFavorite();
    
    ArrayList<DeviceItem> getListDevice(int deviceGroupType);
    
    ArrayList<DeviceItem> getListDeviceByUserId(int userId);
    
    ArrayList<DeviceItem> getListDeviceByPlaceId(int placeId);
    
    DeviceItem getDevice(int deviceId);
    
    ArrayList<DeviceItem> getDevice(int[] lstDeviceId);
    
    ArrayList<DeviceItem> getNewDevice();
    
    int deleteDevice(DeviceItem device);
}
